# -*- coding: utf-8 -*-

#@FIXME: Adicionar contador NEXT_ID


NEXT_ID = 0

class Element(object):
    def __init__(self):
        #NEXT_ID += 1
        self.id = NEXT_ID
        self.refname = None
        self.name = None
        self.description = None
        self.selected = False
 
    def set_color(self, selected):
        colora = SELECT_COLOR[0]
        colorb = SELECT_COLOR[1]
        if selected:
            self.context.set_source_rgb(colorb[0], colorb[1], colorb[2])
        else:
            self.context.set_source_rgb(colora[0], colora[1], colora[2])

    def draw(self, selected):
        pass
    
    def get_properties(self):
        pass

    def is_my_region(self, coords):
        pass

    def contains_my_region(self, coords0, coords1):
        pass

    def is_a_pin(self, coords):
        return False
    
    def move(self, delta):
        pass